home *** CD-ROM | disk | FTP | other *** search
- Path: milo.mcs.anl.gov!usenet
- From: TH Fanning <fanning@ra.anl.gov>
- Newsgroups: comp.lang.c++,comp.graphics.avs,comp.graphics.apps.avs
- Subject: Writing an AVS Module in C++???
- Date: Tue, 26 Mar 1996 12:16:08 -0600
- Organization: Argonne National Laboratory
- Message-ID: <31583468.41C67EA6@ra.anl.gov>
- NNTP-Posting-Host: tackey.ra.anl.gov
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m)
-
- We have a program here, written in C++, that I need to convert
- to an AVS module. As a result, I'm calling C++ code from C.
- I can get the module to compile OK, but I can't get it to
- link. I get the following link errors:
-
- ld: Undefined symbol
- _scd_register
- _scd_deregister
- _ex_table_count
- _ex_table_head
-
- This is on a Sun Sparc running SunOS 4.1.3_U1, and I'm compiling
- with Sun's C++ compiler (CC: SC3.0.1 7/13/94).
-
- Does anyone know where these symbols reside? An AVS module's
- main() routine is in a library, so it's written and compiled
- in C. Maybe that's my problem. I'm also linking in libC.a,
- which *appears* to have the above symbols, but I'm not sure.
- (Doesn't that get linked in automatically anyway, or only if
- the compiler finds a main()??)
-
- I know other people have writtin AVS modules in C++, and I've
- seen their code. Mine follows the same pattern as theirs, but
- I can't seem to get it to work.
-
- Any ideas would be greatly appreciated. E-mailing replies would
- also be helpful. Thanks.
- --
- Tom Fanning
- mailto:fanning@ra.anl.gov
-